package com.xrz.dao;

import com.xrz.pojo.Friend;
import com.xrz.pojo.vo.FriendVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.Collection;
import java.util.List;
@Mapper
public interface FriendDao {


    int insert(Friend record);

    int insertSelective(Friend record);

    Collection<FriendVo> getMyFriends(Integer userId);

    int selectMyFriend(Integer userId,Integer friendId );


    List<Friend> selectByMyId(Integer myId);

    int deleteFriends(@Param("friendId") Integer friendId, @Param("myId ")Integer myId);
}